.box {
  width: 500px;
  margin: 0 auto;
  overflow: hidden;
  // border: 1px solid black;
  & > div {
    float: left;
    width: 100px;
    height: 100px;
    overflow: hidden;
    border-bottom: 1px solid #ffffff;
    border-right: 1px solid #ffffff;
    transition: all 0.3s;
    position: relative;
    cursor: pointer;
    img {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
    }
    .text {
      position: absolute;
      color: #ffffff;
      bottom: 0;
      left: 0;
      z-index: 1;
      background-color: rgba(255, 255, 255, 0.5);
      width: 100%;
      transform: translateY(100%);
      transition: all 0.3s;
    }
    &:hover {
      .text {
        transform: translateY(0%);
      }
    }
  }
}
